all: clean PhonyBooky.exe

PhonyBooky.exe: main.obj Settings.obj DatabaseDLL.dll
    link /NOLOGO /out:PhonyBooky.exe main.obj Settings.obj advapi32.lib DatabaseDLL.lib

main.obj: main.cpp Settings.h
    cl /EHsc -c main.cpp

Settings.obj: Settings.cpp Settings.h
    cl /EHsc -c Settings.cpp

DatabaseDLL.dll: DatabaseDLL.obj
	link /NOLOGO /DLL /out:DatabaseDLL.dll DatabaseDLL.obj
	
DatabaseDLL.obj: DatabaseDLL.cpp DatabaseDLL.h
	cl /LD /EHsc -c DatabaseDLL.cpp

clean:
    del *.obj
    del PhonyBooky.exe
	del DatabaseDLL.dll
	del DatabaseDLL.exp
	del DatabaseDLL.lib